<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenIG: Core-Base/Animation.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openig_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenIG
   &#160;<span id="projectnumber">2.0.7</span>
   </div>
   <div id="projectbrief">cross-platform open-source OpenSceneGraph Image Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_03afdc99cb57c147418d8186cf7c037f.html">Core-Base</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Animation.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_animation_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//#******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//#*      Copyright (C) 2015  Compro Computer Services</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//#*      http://openig.compro.net</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//#*      Source available at: https://github.com/CCSI-CSSI/MuseOpenIG</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//#*      This software is released under the LGPL.</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//#*   This software is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//#*   it under the terms of the GNU Lesser General Public License as published</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//#*   by the Free Software Foundation; either version 2.1 of the License, or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//#*   (at your option) any later version.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//#*   This software is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//#*   but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//#*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">//#*   the GNU Lesser General Public License for more details.</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//#*   You should have received a copy of the GNU Lesser General Public License</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">//#*   along with this library; if not, write to the Free Software</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//#*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">//#*    Please direct any questions or comments to the OpenIG Forums</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//#*    Email address: openig@compro.net</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">//#*    Please direct any questions or comments to the OpenIG Forums</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">//#*    Email address: openig@compro.net</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">//#*</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">//#*****************************************************************************</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifndef ANIMATION_H</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#define ANIMATION_H</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#if defined(OPENIG_SDK)</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">    #include &lt;OpenIG-Base/Export.h&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">    #include &lt;OpenIG-Base/ImageGenerator.h&gt;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">    #include &lt;Core-Base/Export.h&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">    #include &lt;Core-Base/ImageGenerator.h&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;osg/Referenced&gt;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;osg/ref_ptr&gt;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;osg/Vec3&gt;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;osg/Timer&gt;</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_open_i_g.html">OpenIG</a> {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">namespace </span>Base {</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html">   69</a></span>&#160;        <span class="keyword">class </span>IGCORE_EXPORT <a class="code" href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html">AnimationSequencePlaybackCallback</a> : <span class="keyword">public</span> osg::Referenced</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        {</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">bool</span> operator()(<span class="keywordtype">double</span> value) = 0;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        };</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keyword">typedef</span> std::map&lt; std::string, osg::ref_ptr&lt; AnimationSequencePlaybackCallback &gt; &gt;                    AnimationSequenceCallbacks;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">typedef</span> std::map&lt; std::string, osg::ref_ptr&lt; AnimationSequencePlaybackCallback &gt; &gt;::iterator          AnimationSequenceCallbacksIterator;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keyword">typedef</span> std::map&lt; std::string, osg::ref_ptr&lt; AnimationSequencePlaybackCallback &gt; &gt;::const_iterator    AnimationSequenceCallbacksConstIterator;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_base_1_1_ref_animation_sequence_callbacks.html">   89</a></span>&#160;        <span class="keyword">class </span>IGCORE_EXPORT <a class="code" href="class_open_i_g_1_1_base_1_1_ref_animation_sequence_callbacks.html">RefAnimationSequenceCallbacks</a> : <span class="keyword">public</span> AnimationSequenceCallbacks, <span class="keyword">public</span> osg::Referenced {};</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_base_1_1_animations.html">   98</a></span>&#160;        <span class="keyword">class </span>IGCORE_EXPORT <a class="code" href="class_open_i_g_1_1_base_1_1_animations.html">Animations</a></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <a class="code" href="class_open_i_g_1_1_base_1_1_animations.html">Animations</a>();</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            ~<a class="code" href="class_open_i_g_1_1_base_1_1_animations.html">Animations</a>();</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <span class="keyword">static</span> <a class="code" href="class_open_i_g_1_1_base_1_1_animations.html">Animations</a>* instance();</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">  136</a></span>&#160;            <span class="keyword">struct </span><a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">Animation</a> : <span class="keyword">public</span> osg::Referenced</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;            {</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">Animation</a>() : _duration(0.0) {}</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">Animation</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span> duration)</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                    : _name(name)</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                    , _duration(duration)</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                {</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                }</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html">  154</a></span>&#160;                <span class="keyword">struct </span><a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html">Sequence</a> : <span class="keyword">public</span> osg::Referenced</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                {</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                    <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html">Sequence</a>() : _swapPitchRoll(<span class="keyword">false</span>), _enabled(<span class="keyword">true</span>) {}</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a6534d1de8402ec55c8098647755eda8f">  159</a></span>&#160;                    std::string                     <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a6534d1de8402ec55c8098647755eda8f">_name</a>;</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#af1f000ff749bac671133e7fad5384cb6">  161</a></span>&#160;                    std::string                     <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#af1f000ff749bac671133e7fad5384cb6">_player</a>;</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a785f25d334531e3e91f7e1559412cad8">  163</a></span>&#160;                    std::pair&lt;double, double&gt;        <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a785f25d334531e3e91f7e1559412cad8">_timeFrame</a>;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ad7b2297338bc74daa89e8bfe4bb46416">  165</a></span>&#160;                    osg::Vec3                       <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ad7b2297338bc74daa89e8bfe4bb46416">_operationVector</a>;</div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a8f836e2471e4ef7231f66bf4a57fa83a">  167</a></span>&#160;                    std::pair&lt;double, double&gt;        <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a8f836e2471e4ef7231f66bf4a57fa83a">_rotationUpdate</a>;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ace2faf43755e3e6762e5646d254d0923">  169</a></span>&#160;                    osg::Vec3                       <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ace2faf43755e3e6762e5646d254d0923">_positionalOperationVector</a>;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#aef2747b4f3d87b375c2f25b2156cf32c">  171</a></span>&#160;                    std::pair&lt;osg::Vec3, osg::Vec3&gt;  <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#aef2747b4f3d87b375c2f25b2156cf32c">_positionalUpdate</a>;</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a76787e87edb7ef2e8d82c25d5c0149f7">  174</a></span>&#160;                    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>                    <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a76787e87edb7ef2e8d82c25d5c0149f7">_playerId</a>;</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ae685e9b2df4a395134b029ec62c37680">  176</a></span>&#160;                    osg::Vec3                       <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ae685e9b2df4a395134b029ec62c37680">_playerOriginalOrientation</a>;</div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ab1b8ac660ed690721fc5472036553d3f">  178</a></span>&#160;                    osg::Vec3                       <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ab1b8ac660ed690721fc5472036553d3f">_playerOriginalPosition</a>;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a8a01f2714549a85535ff37c442726403">  181</a></span>&#160;                    <span class="keywordtype">bool</span>                            <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a8a01f2714549a85535ff37c442726403">_swapPitchRoll</a>;</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a79a0f4dc1ec7292c2e9bb03b81cee449">  183</a></span>&#160;                    <span class="keywordtype">bool</span>                            <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a79a0f4dc1ec7292c2e9bb03b81cee449">_enabled</a>;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                };</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a81017625974717d4e3f8da8d49e23284">  188</a></span>&#160;                <span class="keyword">typedef</span> std::map&lt; std::string, osg::ref_ptr&lt;Sequence&gt; &gt;                 <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a81017625974717d4e3f8da8d49e23284">SequencesMap</a>;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;                <span class="keyword">typedef</span> std::map&lt; std::string, osg::ref_ptr&lt;Sequence&gt; &gt;::iterator       SequencesMapIterator;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                <span class="keyword">typedef</span> std::map&lt; std::string, osg::ref_ptr&lt;Sequence&gt; &gt;::const_iterator SequencesMapConstIterator;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a62635adccb9399b7b56c2571c190b578">  193</a></span>&#160;                <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a81017625974717d4e3f8da8d49e23284">SequencesMap</a>                                <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a62635adccb9399b7b56c2571c190b578">_sequences</a>;</div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#aa8399620723d377452e71a1e674859e8">  195</a></span>&#160;                std::string                                 <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#aa8399620723d377452e71a1e674859e8">_name</a>;</div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#afb49cdebb2b93555b121847fe01e44da">  197</a></span>&#160;                <span class="keywordtype">double</span>                                      <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#afb49cdebb2b93555b121847fe01e44da">_duration</a>;</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            };</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_container.html">  202</a></span>&#160;            <span class="keyword">struct </span><a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_container.html">AnimationContainer</a> : <span class="keyword">public</span> std::map&lt; std::string, osg::ref_ptr&lt; Animation &gt; &gt;, <span class="keyword">public</span> osg::Referenced {};</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;            <span class="keywordtype">void</span> playAnimation(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> entityId, <span class="keyword">const</span> std::string&amp; name, <a class="code" href="class_open_i_g_1_1_base_1_1_ref_animation_sequence_callbacks.html">RefAnimationSequenceCallbacks</a>* cbs = 0);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            <span class="keywordtype">void</span> stopAnimation(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> entityId, <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;            <span class="keywordtype">void</span> resetAnimation(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> entityId, <span class="keyword">const</span> std::string&amp; name);</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            <span class="keywordtype">void</span> pauseResumeAnimation(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> entityId, <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">bool</span> pauseResume = <span class="keyword">true</span>);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;            <span class="keywordtype">void</span> updateAnimations(<a class="code" href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a>* ig);</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html">  275</a></span>&#160;            <span class="keyword">struct </span><a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html">RuntimeAnimation</a> : osg::Referenced</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;            {</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                <a class="code" href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html">RuntimeAnimation</a>() : _startTime(0), _pauseTime(0), _pausedTime(0.0), _entityId(0), _resumed(<span class="keyword">false</span>) {}</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                osg::Timer_t                                _startTime;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                osg::Timer_t                                _pauseTime;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                <span class="keywordtype">double</span>                                      _pausedTime;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                osg::observer_ptr&lt; Animation &gt;              _animation;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>                                _entityId;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                osg::ref_ptr&lt;RefAnimationSequenceCallbacks&gt; _sequenceCallbacks;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                <span class="keywordtype">bool</span>                                        _resumed;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            };</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keyword">typedef</span> std::vector&lt; osg::ref_ptr&lt;RuntimeAnimation&gt; &gt;                   RuntimeAnimations;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            <span class="keyword">typedef</span> std::vector&lt; osg::ref_ptr&lt;RuntimeAnimation&gt; &gt;::iterator         RuntimeAnimationsIterator;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            <span class="keyword">typedef</span> std::vector&lt; osg::ref_ptr&lt;RuntimeAnimation&gt; &gt;::const_iterator   RuntimeAnimationsConstIterator;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="class_open_i_g_1_1_base_1_1_animations.html#a897ee6c6b1af897192a4f3a9ddfe3909">  293</a></span>&#160;            RuntimeAnimations   <a class="code" href="class_open_i_g_1_1_base_1_1_animations.html#a897ee6c6b1af897192a4f3a9ddfe3909">_animations</a>;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        };</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    } <span class="comment">// namespace</span></div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;} <span class="comment">// namespace</span></div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<span class="preprocessor">#endif // ANIMATION_H</span></div><div class="ttc" id="namespace_open_i_g_html"><div class="ttname"><a href="namespace_open_i_g.html">OpenIG</a></div><div class="ttdef"><b>Definition:</b> Animation.h:55</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_container_html"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_container.html">OpenIG::Base::Animations::AnimationContainer</a></div><div class="ttdoc">Referenced pointer of std::vector of Animation. </div><div class="ttdef"><b>Definition:</b> Animation.h:202</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_html"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">OpenIG::Base::Animations::Animation</a></div><div class="ttdoc">The Animation struct. </div><div class="ttdef"><b>Definition:</b> Animation.h:136</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_ace2faf43755e3e6762e5646d254d0923"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ace2faf43755e3e6762e5646d254d0923">OpenIG::Base::Animations::Animation::Sequence::_positionalOperationVector</a></div><div class="ttdeci">osg::Vec3 _positionalOperationVector</div><div class="ttdoc">The vector of the linear interpolation of the positional update. </div><div class="ttdef"><b>Definition:</b> Animation.h:169</div></div>
<div class="ttc" id="class_open_i_g_1_1_base_1_1_animations_html"><div class="ttname"><a href="class_open_i_g_1_1_base_1_1_animations.html">OpenIG::Base::Animations</a></div><div class="ttdoc">The Animations class. </div><div class="ttdef"><b>Definition:</b> Animation.h:98</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_a785f25d334531e3e91f7e1559412cad8"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a785f25d334531e3e91f7e1559412cad8">OpenIG::Base::Animations::Animation::Sequence::_timeFrame</a></div><div class="ttdeci">std::pair&lt; double, double &gt; _timeFrame</div><div class="ttdoc">The time in seconds &lt;start,end&gt; of this sequence. </div><div class="ttdef"><b>Definition:</b> Animation.h:163</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_html_aa8399620723d377452e71a1e674859e8"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#aa8399620723d377452e71a1e674859e8">OpenIG::Base::Animations::Animation::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdoc">Name of the Animation. </div><div class="ttdef"><b>Definition:</b> Animation.h:195</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_a8f836e2471e4ef7231f66bf4a57fa83a"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a8f836e2471e4ef7231f66bf4a57fa83a">OpenIG::Base::Animations::Animation::Sequence::_rotationUpdate</a></div><div class="ttdeci">std::pair&lt; double, double &gt; _rotationUpdate</div><div class="ttdoc">The update of the orientation along the _operationVector &lt;start,end&gt; </div><div class="ttdef"><b>Definition:</b> Animation.h:167</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_ab1b8ac660ed690721fc5472036553d3f"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ab1b8ac660ed690721fc5472036553d3f">OpenIG::Base::Animations::Animation::Sequence::_playerOriginalPosition</a></div><div class="ttdeci">osg::Vec3 _playerOriginalPosition</div><div class="ttdoc">The original player position. </div><div class="ttdef"><b>Definition:</b> Animation.h:178</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_html_a62635adccb9399b7b56c2571c190b578"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a62635adccb9399b7b56c2571c190b578">OpenIG::Base::Animations::Animation::_sequences</a></div><div class="ttdeci">SequencesMap _sequences</div><div class="ttdoc">Name std::string based map of Sequence. </div><div class="ttdef"><b>Definition:</b> Animation.h:193</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_a6534d1de8402ec55c8098647755eda8f"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a6534d1de8402ec55c8098647755eda8f">OpenIG::Base::Animations::Animation::Sequence::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdoc">The name of the Sequence. </div><div class="ttdef"><b>Definition:</b> Animation.h:159</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_ad7b2297338bc74daa89e8bfe4bb46416"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ad7b2297338bc74daa89e8bfe4bb46416">OpenIG::Base::Animations::Animation::Sequence::_operationVector</a></div><div class="ttdeci">osg::Vec3 _operationVector</div><div class="ttdoc">The vector of the linear interpolation of the orientation. </div><div class="ttdef"><b>Definition:</b> Animation.h:165</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_a79a0f4dc1ec7292c2e9bb03b81cee449"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a79a0f4dc1ec7292c2e9bb03b81cee449">OpenIG::Base::Animations::Animation::Sequence::_enabled</a></div><div class="ttdeci">bool _enabled</div><div class="ttdoc">Enabled or disabled, if false the sequence is not processed. </div><div class="ttdef"><b>Definition:</b> Animation.h:183</div></div>
<div class="ttc" id="class_open_i_g_1_1_base_1_1_image_generator_html"><div class="ttname"><a href="class_open_i_g_1_1_base_1_1_image_generator.html">OpenIG::Base::ImageGenerator</a></div><div class="ttdoc">The Image Generator abstract interface. This is base class for openig::OpenIG. </div><div class="ttdef"><b>Definition:</b> ImageGenerator.h:74</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_html_a81017625974717d4e3f8da8d49e23284"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#a81017625974717d4e3f8da8d49e23284">OpenIG::Base::Animations::Animation::SequencesMap</a></div><div class="ttdeci">std::map&lt; std::string, osg::ref_ptr&lt; Sequence &gt; &gt; SequencesMap</div><div class="ttdoc">Name std::string based map of Sequence. </div><div class="ttdef"><b>Definition:</b> Animation.h:188</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_a76787e87edb7ef2e8d82c25d5c0149f7"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a76787e87edb7ef2e8d82c25d5c0149f7">OpenIG::Base::Animations::Animation::Sequence::_playerId</a></div><div class="ttdeci">unsigned int _playerId</div><div class="ttdoc">The ID of the player. Since our players are OpenIG::Base::ImageGenerator::Entity this is the ID...</div><div class="ttdef"><b>Definition:</b> Animation.h:174</div></div>
<div class="ttc" id="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback_html"><div class="ttname"><a href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html">OpenIG::Base::AnimationSequencePlaybackCallback</a></div><div class="ttdoc">The AnimationSequencePlaybackCallback class. </div><div class="ttdef"><b>Definition:</b> Animation.h:69</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation_html"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html">OpenIG::Base::Animations::RuntimeAnimation</a></div><div class="ttdoc">The RuntimeAnimation struct. </div><div class="ttdef"><b>Definition:</b> Animation.h:275</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_af1f000ff749bac671133e7fad5384cb6"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#af1f000ff749bac671133e7fad5384cb6">OpenIG::Base::Animations::Animation::Sequence::_player</a></div><div class="ttdeci">std::string _player</div><div class="ttdoc">The name of the player. </div><div class="ttdef"><b>Definition:</b> Animation.h:161</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html">OpenIG::Base::Animations::Animation::Sequence</a></div><div class="ttdoc">The Sequence struct. </div><div class="ttdef"><b>Definition:</b> Animation.h:154</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_html_afb49cdebb2b93555b121847fe01e44da"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#afb49cdebb2b93555b121847fe01e44da">OpenIG::Base::Animations::Animation::_duration</a></div><div class="ttdeci">double _duration</div><div class="ttdoc">Duration of the animation in seconds. </div><div class="ttdef"><b>Definition:</b> Animation.h:197</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_a8a01f2714549a85535ff37c442726403"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#a8a01f2714549a85535ff37c442726403">OpenIG::Base::Animations::Animation::Sequence::_swapPitchRoll</a></div><div class="ttdeci">bool _swapPitchRoll</div><div class="ttdoc">flags to swap pitch and roll in the animation playback computation It is introduced to cover the vari...</div><div class="ttdef"><b>Definition:</b> Animation.h:181</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_aef2747b4f3d87b375c2f25b2156cf32c"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#aef2747b4f3d87b375c2f25b2156cf32c">OpenIG::Base::Animations::Animation::Sequence::_positionalUpdate</a></div><div class="ttdeci">std::pair&lt; osg::Vec3, osg::Vec3 &gt; _positionalUpdate</div><div class="ttdoc">The update of the position &lt;start,end&gt; </div><div class="ttdef"><b>Definition:</b> Animation.h:171</div></div>
<div class="ttc" id="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence_html_ae685e9b2df4a395134b029ec62c37680"><div class="ttname"><a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#ae685e9b2df4a395134b029ec62c37680">OpenIG::Base::Animations::Animation::Sequence::_playerOriginalOrientation</a></div><div class="ttdeci">osg::Vec3 _playerOriginalOrientation</div><div class="ttdoc">The original player orientation. </div><div class="ttdef"><b>Definition:</b> Animation.h:176</div></div>
<div class="ttc" id="class_open_i_g_1_1_base_1_1_ref_animation_sequence_callbacks_html"><div class="ttname"><a href="class_open_i_g_1_1_base_1_1_ref_animation_sequence_callbacks.html">OpenIG::Base::RefAnimationSequenceCallbacks</a></div><div class="ttdef"><b>Definition:</b> Animation.h:89</div></div>
<div class="ttc" id="class_open_i_g_1_1_base_1_1_animations_html_a897ee6c6b1af897192a4f3a9ddfe3909"><div class="ttname"><a href="class_open_i_g_1_1_base_1_1_animations.html#a897ee6c6b1af897192a4f3a9ddfe3909">OpenIG::Base::Animations::_animations</a></div><div class="ttdeci">RuntimeAnimations _animations</div><div class="ttdoc">std::vector of RuntimeAnimation </div><div class="ttdef"><b>Definition:</b> Animation.h:293</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed May 16 2018 15:41:11 for OpenIG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
